<%- @title='编辑个人资料' %>
<div class="col-xs-10 col-sm-10 col-md-8 col-lg-8">
  <h4>编辑个人资料</h4>
  <div class="pdt10">

    <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
        <%= f.error_notification %>


        <%= f.input :name,
                    label: "名字",
                    required: false,
                    wrapper_html: {class: "form-group"},
                    input_html: { class: "form-control",
                                  id: "user_name",
                                  placeholder: "必填" }%>
        <%= f.input :intro,
                    label: "简介",
                    required: false,
                    wrapper_html: {class: "form-group"},
                    input_html: { class: "form-control",
                                  id: "user_intro",
                                  placeholder: "选填" }%>


        <%= f.input :password,
                    label: "修改密码（不修改请留空）",
                    wrapper_html: {class: "form-group"},
                    input_html: {class: "form-control",
                                 id: "user_password",
                                 placeholder: "密码最少#{@minimum_password_length}位"} %>

        <%= f.input :password_confirmation,
                    label: "重复密码（不修改请留空）",
                    wrapper_html: {class: "form-group"},
                    input_html: {class: "form-control",
                                 id: "user_password_confirmation",
                                 placeholder: "密码最少#{@minimum_password_length}位"} %>

        <%= f.input :current_password,
                    label: "当前密码",
                    wrapper_html: {class: "form-group"},
                    input_html: {class: "form-control",
                                 id: "user_password",
                                 placeholder: "密码最少#{@minimum_password_length}位"} %>

        <button type="submit" class="btn btn-default">修 改</button>
    <% end %>
  </div>
</div>


<!--<h3>Cancel my account</h3>-->

<!--<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>-->
